import { get, post } from '@/utils/request';

const api = {
   getHomeOrderList: '/mock/dev/orderlist',
   getHomeTableList: '/mock/dev/tablelist',
   getHomeDetail: '/mock/dev/detail',
   getHomeLine: '/mock/dev/lineEchart',
   getHomeGantt: '/mock/dev/ganttEchart',
   getHomePie: '/mock/dev/pieEchart',
   getDictionaries: '/mock/dev/dictionaries',
};

export const getHomeOrderList = (params) => {
   return post(api.getHomeOrderList, params);
};

export const getHomeTableList = (params) => {
   return post(api.getHomeTableList, params);
};

export const getHomeDetail = (params) => {
   return post(api.getHomeDetail, params);
};

export const getHomeLine = (params) => {
   return post(api.getHomeLine, params);
};
export const getHomeGantt = (params) => {
   return post(api.getHomeGantt, params);
};
export const getHomePie = (params) => {
   return post(api.getHomePie, params);
};
export const getDictionaries = (params) => {
   return post(api.getDictionaries, params);
};

export default {
   getHomeOrderList,
   getHomeTableList,
   getHomeDetail,
   getHomeLine,
   getHomeGantt,
   getHomePie,
   getDictionaries,
};
